// import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

/**
 * 不使用Cookies 使用localStorage
 * @returns {*}
 */
export function getToken() {
    return localStorage.getItem(TokenKey)
}

export function setToken(token) {
    console.log('auth', token)
    return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
    return localStorage.removeItem(TokenKey)
}
